import fs from "fs";

const logText = fs.readFileSync("./logs.txt", "utf8");

const errLines = logText.split("\n").filter((v) => v.includes("失败"));

const errLineText = errLines.join("\n");

// fs.writeFileSync("./links.txt", errLineText, "utf8");
// fs.writeFileSync("./logs.txt", "", "utf8");

console.log(errLineText);
